package com.xyz.service;

import com.xyz.util.dto.DataResult;
import com.xyz.util.dto.LoginInfo;

public interface BaseService {

    DataResult selectDictType(LoginInfo li, int pageNum, int pageSize, String name, String code) throws Exception;

    DataResult insertDictType(LoginInfo li, String name, String code, String sort, String remark) throws Exception;

    DataResult updateDictType(LoginInfo li, long id, String name, String code, String sort, String remark) throws Exception;

    DataResult deleteDictType(LoginInfo li, long id) throws Exception;

    DataResult selectDictData(LoginInfo li, int pageNum, int pageSize, long id) throws Exception;

    DataResult insertDictData(LoginInfo li, long id, String name, int value, String sort, String color, String remark) throws Exception;

    DataResult updateDictData(LoginInfo li, long id, String name, int value, String sort, String color, String remark) throws Exception;

    DataResult deleteDictData(LoginInfo li, long id) throws Exception;

    // ===========================================================================================

    DataResult insertArea(LoginInfo li, String name, String code, String sort) throws Exception;

    DataResult updateArea(LoginInfo li, long id, String name, String code, String sort) throws Exception;

    DataResult deleteArea(LoginInfo li, long id) throws Exception;

    DataResult insertSystem(LoginInfo li, long areaTreeId, String name, String code, String sort) throws Exception;

    DataResult updateSystem(LoginInfo li, long id, long areaTreeId, String name, String code, String sort) throws Exception;

    DataResult deleteSystem(LoginInfo li, long id) throws Exception;

    DataResult insertSubsystem(LoginInfo li, long subsystemTreeId, String name, int emType, String code, String sort) throws Exception;

    DataResult updateSubsystem(LoginInfo li, long id, long subsystemTreeId, String name, int emType, String code, String sort) throws Exception;

    DataResult deleteSubsystem(LoginInfo li, long id) throws Exception;

    // ===========================================================================================

    DataResult selectPatrolEm(LoginInfo li, int pageNum, int pageSize, String name) throws Exception;

    // ===========================================================================================

    DataResult selectPatrolSubsystem(LoginInfo li, String pageNum, String pageSize, String subsystemTreeId, String name) throws Exception;

    DataResult insertPatrolSubsystem(LoginInfo li, long subsystemTreeId, String name) throws Exception;

    DataResult updatePatrolSubsystem(LoginInfo li, long id, long subsystemTreeId, String name) throws Exception;

    DataResult deletePatrolSubsystem(LoginInfo li, long id) throws Exception;

    // ===========================================================================================

    DataResult selectPatrolFixed(LoginInfo li, String pageNum, String pageSize, String name) throws Exception;

    DataResult insertPatrolFixed(LoginInfo li, String name) throws Exception;

    DataResult updatePatrolFixed(LoginInfo li, long id, String name) throws Exception;

    DataResult deletePatrolFixed(LoginInfo li, long id) throws Exception;

    // ===========================================================================================

    DataResult selectPatrolTask(LoginInfo li, int pageNum, int pageSize, int type, String typeId) throws Exception;

    DataResult insertPatrolTask(LoginInfo li, int type, int typeId, String project, String way, String standard, int isRecorded, String sort, String childType) throws Exception;

    DataResult updatePatrolTask(LoginInfo li, long id, int type, int typeId, String project, String way, String standard, int isRecorded, String sort, String childType) throws Exception;

    DataResult deletePatrolTask(LoginInfo li, long id) throws Exception;

}